package com.example.test.controller;

import com.example.test.entity.Market;
import com.example.test.entity.User;
import com.example.test.service.IMarketService;
import com.example.test.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping(value = "/market")
public class MarketController {
    @Autowired
    private IMarketService iMarketService;

    @RequestMapping(value = "/get", method = RequestMethod.POST)
    private List<Market> get(){
        return iMarketService.get();
    }
}
